from flask import Blueprint, Flask, Request, Response, request

url_prefix = "/home"

router = Blueprint("error", __name__)
request: Request


@router.route("/404")
def e404():
    url = request.args.get("url", default=None)
    res = Response()
    if url == None:
        res.data = "地址未找到"

    else:
        res.data = "请检查地址:"+(url)
    return res
